/*
 * XML Type:  DepositMailResponse
 * Namespace: http://ofx.net/types/2003/04
 * Java type: net.ofx.types.x2003.x04.DepositMailResponse
 *
 * Automatically generated - do not modify.
 */
package net.ofx.types.x2003.x04.impl;
/**
 * An XML DepositMailResponse(@http://ofx.net/types/2003/04).
 *
 * This is a complex type.
 */
public class DepositMailResponseImpl extends net.ofx.types.x2003.x04.impl.AbstractMailResponseImpl implements net.ofx.types.x2003.x04.DepositMailResponse
{
    
    public DepositMailResponseImpl(org.apache.xmlbeans.SchemaType sType)
    {
        super(sType);
    }
    
    private static final javax.xml.namespace.QName BANKACCTFROM$0 = 
        new javax.xml.namespace.QName("", "BANKACCTFROM");
    private static final javax.xml.namespace.QName MAIL$2 = 
        new javax.xml.namespace.QName("", "MAIL");
    private static final javax.xml.namespace.QName TRNAMT$4 = 
        new javax.xml.namespace.QName("", "TRNAMT");
    private static final javax.xml.namespace.QName DTUSER$6 = 
        new javax.xml.namespace.QName("", "DTUSER");
    private static final javax.xml.namespace.QName FEE$8 = 
        new javax.xml.namespace.QName("", "FEE");
    
    
    /**
     * Gets the "BANKACCTFROM" element
     */
    public net.ofx.types.x2003.x04.BankAccount getBANKACCTFROM()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.BankAccount target = null;
            target = (net.ofx.types.x2003.x04.BankAccount)get_store().find_element_user(BANKACCTFROM$0, 0);
            if (target == null)
            {
                return null;
            }
            return target;
        }
    }
    
    /**
     * Sets the "BANKACCTFROM" element
     */
    public void setBANKACCTFROM(net.ofx.types.x2003.x04.BankAccount bankacctfrom)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.BankAccount target = null;
            target = (net.ofx.types.x2003.x04.BankAccount)get_store().find_element_user(BANKACCTFROM$0, 0);
            if (target == null)
            {
                target = (net.ofx.types.x2003.x04.BankAccount)get_store().add_element_user(BANKACCTFROM$0);
            }
            target.set(bankacctfrom);
        }
    }
    
    /**
     * Appends and returns a new empty "BANKACCTFROM" element
     */
    public net.ofx.types.x2003.x04.BankAccount addNewBANKACCTFROM()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.BankAccount target = null;
            target = (net.ofx.types.x2003.x04.BankAccount)get_store().add_element_user(BANKACCTFROM$0);
            return target;
        }
    }
    
    /**
     * Gets the "MAIL" element
     */
    public net.ofx.types.x2003.x04.Mail getMAIL()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.Mail target = null;
            target = (net.ofx.types.x2003.x04.Mail)get_store().find_element_user(MAIL$2, 0);
            if (target == null)
            {
                return null;
            }
            return target;
        }
    }
    
    /**
     * Sets the "MAIL" element
     */
    public void setMAIL(net.ofx.types.x2003.x04.Mail mail)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.Mail target = null;
            target = (net.ofx.types.x2003.x04.Mail)get_store().find_element_user(MAIL$2, 0);
            if (target == null)
            {
                target = (net.ofx.types.x2003.x04.Mail)get_store().add_element_user(MAIL$2);
            }
            target.set(mail);
        }
    }
    
    /**
     * Appends and returns a new empty "MAIL" element
     */
    public net.ofx.types.x2003.x04.Mail addNewMAIL()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.Mail target = null;
            target = (net.ofx.types.x2003.x04.Mail)get_store().add_element_user(MAIL$2);
            return target;
        }
    }
    
    /**
     * Gets the "TRNAMT" element
     */
    public java.lang.String getTRNAMT()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(TRNAMT$4, 0);
            if (target == null)
            {
                return null;
            }
            return target.getStringValue();
        }
    }
    
    /**
     * Gets (as xml) the "TRNAMT" element
     */
    public net.ofx.types.x2003.x04.AmountType xgetTRNAMT()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.AmountType target = null;
            target = (net.ofx.types.x2003.x04.AmountType)get_store().find_element_user(TRNAMT$4, 0);
            return target;
        }
    }
    
    /**
     * Sets the "TRNAMT" element
     */
    public void setTRNAMT(java.lang.String trnamt)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(TRNAMT$4, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(TRNAMT$4);
            }
            target.setStringValue(trnamt);
        }
    }
    
    /**
     * Sets (as xml) the "TRNAMT" element
     */
    public void xsetTRNAMT(net.ofx.types.x2003.x04.AmountType trnamt)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.AmountType target = null;
            target = (net.ofx.types.x2003.x04.AmountType)get_store().find_element_user(TRNAMT$4, 0);
            if (target == null)
            {
                target = (net.ofx.types.x2003.x04.AmountType)get_store().add_element_user(TRNAMT$4);
            }
            target.set(trnamt);
        }
    }
    
    /**
     * Gets the "DTUSER" element
     */
    public java.lang.String getDTUSER()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(DTUSER$6, 0);
            if (target == null)
            {
                return null;
            }
            return target.getStringValue();
        }
    }
    
    /**
     * Gets (as xml) the "DTUSER" element
     */
    public net.ofx.types.x2003.x04.DateTimeType xgetDTUSER()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.DateTimeType target = null;
            target = (net.ofx.types.x2003.x04.DateTimeType)get_store().find_element_user(DTUSER$6, 0);
            return target;
        }
    }
    
    /**
     * True if has "DTUSER" element
     */
    public boolean isSetDTUSER()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(DTUSER$6) != 0;
        }
    }
    
    /**
     * Sets the "DTUSER" element
     */
    public void setDTUSER(java.lang.String dtuser)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(DTUSER$6, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(DTUSER$6);
            }
            target.setStringValue(dtuser);
        }
    }
    
    /**
     * Sets (as xml) the "DTUSER" element
     */
    public void xsetDTUSER(net.ofx.types.x2003.x04.DateTimeType dtuser)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.DateTimeType target = null;
            target = (net.ofx.types.x2003.x04.DateTimeType)get_store().find_element_user(DTUSER$6, 0);
            if (target == null)
            {
                target = (net.ofx.types.x2003.x04.DateTimeType)get_store().add_element_user(DTUSER$6);
            }
            target.set(dtuser);
        }
    }
    
    /**
     * Unsets the "DTUSER" element
     */
    public void unsetDTUSER()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(DTUSER$6, 0);
        }
    }
    
    /**
     * Gets the "FEE" element
     */
    public java.lang.String getFEE()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(FEE$8, 0);
            if (target == null)
            {
                return null;
            }
            return target.getStringValue();
        }
    }
    
    /**
     * Gets (as xml) the "FEE" element
     */
    public net.ofx.types.x2003.x04.AmountType xgetFEE()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.AmountType target = null;
            target = (net.ofx.types.x2003.x04.AmountType)get_store().find_element_user(FEE$8, 0);
            return target;
        }
    }
    
    /**
     * True if has "FEE" element
     */
    public boolean isSetFEE()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(FEE$8) != 0;
        }
    }
    
    /**
     * Sets the "FEE" element
     */
    public void setFEE(java.lang.String fee)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(FEE$8, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(FEE$8);
            }
            target.setStringValue(fee);
        }
    }
    
    /**
     * Sets (as xml) the "FEE" element
     */
    public void xsetFEE(net.ofx.types.x2003.x04.AmountType fee)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.AmountType target = null;
            target = (net.ofx.types.x2003.x04.AmountType)get_store().find_element_user(FEE$8, 0);
            if (target == null)
            {
                target = (net.ofx.types.x2003.x04.AmountType)get_store().add_element_user(FEE$8);
            }
            target.set(fee);
        }
    }
    
    /**
     * Unsets the "FEE" element
     */
    public void unsetFEE()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(FEE$8, 0);
        }
    }
}
